-
Notifications
You must be signed in to change notification settings - Fork 220
feat: demonstrate contract-first CRDs #1524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: demonstrate contract-first CRDs #1524
Conversation
Modify the leader-election sample to use contract-first. That is, the CRDs is written in YAML and the java code is generated automatically using the java-generator-maven-plugin from fabric8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @derlin , the tests are failing it seems that the CRD is not applied, could you take a look pls?
Lots of silly mistakes, sorry for that.
I missed lots of details, sorry for that. Should be fixed now ! |
@@ -0,0 +1,34 @@ | |||
# Custom Resource Definition that will be used to generate the Java classes in target/generated-sources/java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this probably isn't a big deal, I think that if we try to follow the CRD generator file name format here, then this file should be named with leaderelections
(plural form) instead of leaderelection
(singular).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
@metacosm Great thanks! May I kindly ask to add the label hacktoberfest-accepted to it? |
Modify the leader-election sample to use contract-first. That is, the CRDs is written in YAML and the java code is generated automatically using the java-generator-maven-plugin from fabric8.
#1338